package com.shawn.baseappbygroovydsl.ui.views

import android.os.Bundle
import android.view.View
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.shawn.baseappbygroovydsl.R
import com.shawn.baseappbygroovydsl.databinding.FragmentProgressBinding
import com.shawn.baseappbygroovydsl.ui.base.FragmentBase

class ProgressFragment : FragmentBase<FragmentProgressBinding>(R.layout.fragment_progress) {
    private lateinit var slideshowViewModel: ViewModel


    override fun statusBar() {

    }

    override fun lazyLoad() {
        slideshowViewModel = ViewModelProvider(this)[NestedViewModel::class.java]
        initView()
    }

    override fun onKeyCodeBack(): Boolean {
        return false
    }

    override fun initClick() {

    }

    private fun initView() {

    }

    override fun getData() {
        refreshHistory()
    }

    override fun getBind(view: View): FragmentProgressBinding {
        return FragmentProgressBinding.bind(view)
    }

    private fun refreshHistory() {

    }

    companion object {
        const val type1 = "type"
        fun newInstance(): ProgressFragment {
            val args = Bundle()
            val fragment = ProgressFragment()
            fragment.arguments = args
            return fragment
        }
    }
}